From: Giovanni Campagna Date: Sun, 24 Oct 2010 12:30:03 +0000 (+0200) Subject: Avoid warnings on leave-event for widgets tracking hover X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9621 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a915af4b30a5692fd72db861a5c5280059c72327;p=gnome-shell.git Avoid warnings on leave-event for widgets tracking hover ClutterCrossingEvent->related can be NULL if the pointer is not under any actor. Unconditionally set hover to FALSE in that case. https://bugzilla.gnome.org/show_bug.cgi?id=633028 --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index e5f30509f..48c7a3dde 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -594,7 +594,7 @@ st_widget_leave (ClutterActor *actor, if (priv->track_hover) { - if (!clutter_actor_contains (actor, event->related)) + if (!event->related || !clutter_actor_contains (actor, event->related)) st_widget_set_hover (ST_WIDGET (actor), FALSE); }